package com.ruoyi.mapper;

import com.ruoyi.domain.BmInordergoodslist;
import com.ruoyi.domain.BmInorderlist;
import com.ruoyi.domain.vo.ShoppingList;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: star
 * @Description:
 * @DateTime: 2023/8/11 21:06
 **/
@Mapper
public interface OrderMapper {
    public List<Map<String, Object>> getShoppingGoods(Integer goodsId);

    public List<Map<String, Object>> getShoppingSpecification(Integer id);

    public boolean addHead(BmInorderlist bmInorderlist);

    public boolean addItem(List<BmInordergoodslist> list);

    public double getAmount(Integer id);

    public Integer getGoodsStock(Integer id);

    public boolean updateStock(Integer id, Integer stock);

    public boolean updateAmount(Integer id, double amount);

    public Integer getOrderStep(String orderCode);

    public boolean updateOrderState(String orderCode);

    public boolean payOrderType0(BmInorderlist bmInorderlist);

    public String getPassword(Integer id);

    public boolean payOrderType3(BmInorderlist bmInorderlist);

    public Map<String, Object> getSellerAllMessage(Integer id);
}
